package org.lx.nursing.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("reservation")
public class Reservation {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("预约人姓名")
    private String name;

    @ApiModelProperty("预约人手机号")
    private String mobile;

    @ApiModelProperty("预约时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime time;

    @ApiModelProperty("探访人")
    private String visitor;

    @ApiModelProperty("预约类型 0-参观预约 1-探访预约")
    private Integer type;

    @ApiModelProperty("预约状态 0-待报到 1-已完成 2-取消 3-过期")
    private Integer status;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty("创建人id")
    private Long createBy;

    @ApiModelProperty("更新人id")
    private Long updateBy;

    @ApiModelProperty("备注")
    private String remark;
}